﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="StationCleaningEntry.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.StationCleaning.StationCleaningEntry" %>

<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>

    <script type="text/jscript" language="JavaScript" src="../../Javascript/CommonFunction.js"></script>

    <script type="text/jscript" language="Javascript" src="../../Javascript/LPM/LostFound/DigitalInputBoxKeyEventHandler.js"></script>

    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .TdStyle
        {
            width:100px;
        }
        .TdShiftStyle
        {
            width:80px;
        }
    </style>

    <script type="text/javascript">
        
       //check the input data number of "0" and cancel
       function TrimZero(strval)
        {
            if (strval.substring(0,1)=="0")
              {
                   strval=strval.substr(1);
                   strval=TrimZero(strval);
               }
            return strval;
        }
        
        //check input data is a digit
        function IsInteger(val)
        {
	        var re;
	        re = /^[0-9]*$/;
	        return re.exec(val);	        
        }
        
        //check the score if less passscore
      function CheckScore(obj)
      {   
          var hdnLastScoreID=document.getElementById("hdnLastScore");
          hdnLastScoreID.value=obj.id;
          var hdnValues = document.getElementById("hdnValues");
          var divLowerStanderd = document.getElementById("divLowerStanderd");
          
          if(obj.value!="")
          {
           if (!IsInteger(obj.value))
                {         
                  obj.value="0";       
                 
                }
            if (obj.value.length>=2)
                {
                     obj.value=TrimZero(obj.value);         
                }
          }
          if(trim(obj.value)==""||obj.value>100)
          {
              hdnValues.value = hdnValues.value+obj.id+"¶"+"0"+"§";
          }
          else
          {
             hdnValues.value = hdnValues.value+obj.id+"¶"+obj.value+"§";
          }
          
          
           var ScoreID=obj.id;
           var Score=document.getElementById(ScoreID).value;
           var AvgScoreID=obj.id.substring(0,1);
           if(Score>100||Score<0||trim(Score)==""||parseInt(obj.value)==0)
           {
               obj.value="0";
           }
           
           var passScore = document.getElementById("hdnCleanPassScore").value; //add by zengshunbo 20090225 issue1027
           
//           if(Score <= 100 && Score > 0)
           if((Score <= 100 && Score > 0 && Score < parseInt(passScore)) || ( Score > parseInt(passScore) && document.getElementById("txt" + hdnLastScoreID.value) != null))
           {
                document.getElementById("btnAddRow").click();
           }       
            
        }   
        
        //limit the input 
        function KeyDown(obj) 
        {
           //-------------------- Del by zengshunbo 2009-02-27 issue:1041 -----------------
           /*
           var oEvent=event;
           alert(oEvent.keyCode);

           //add by SQB begin...
           if(window.event.keyCode==229)
           {
                //event.keyCode=0;
                return true;		
           }
           //add by SQB End...
           
            if(oEvent.keyCode==17 || oEvent.keyCode==16)//17-Ctrl,16-shift
           {
                //event.keyCode=0;
                  oEvent.returnValue=false;	
           }
           else if((oEvent.keyCode==8) || (oEvent.keyCode==46) || (oEvent.keyCode==37) || (oEvent.keyCode==38) || (oEvent.keyCode==39) || (oEvent.keyCode==40)||(oEvent.keyCode==9))
           {
                oEvent.returnValue=true;
           }
           else if(obj.value.length>3)
           {
                oEvent.returnValue=false;
                  
           }
           else  if((oEvent.keyCode>=48 && oEvent.keyCode<=57) || (oEvent.keyCode>=96&& oEvent.keyCode<=105))        
           {              
                  oEvent.returnValue=true;
           }
           else
           {
                 oEvent.returnValue=false;	    	
           }
           */
           //-----------------------------End Del by zengshunbo 2009-02-27 issue:1041 ---------------------------
           
	        if(event.keyCode != 9) //Tab
	        {
		        obj.value = obj.value.replace(/[^\d]/g,'');
	        }
         	
        }
        
     
     //get less than standard reason
      function CheckLowerStandardReason(obj)
        {
            var hdnLowerthanStandardReasonValues=document.getElementById("hdnLowerthanStandardReason");
            hdnLowerthanStandardReasonValues.value=hdnLowerthanStandardReasonValues.value+obj.id+"¶"+obj.value+"§";
            
        }
      
      //get less than standard action
      function CheckLowerStandardAction(obj)
        {
            var hdnLowerthanStandardActionValues=document.getElementById("hdnLowerthanStandardAction");
            hdnLowerthanStandardActionValues.value=hdnLowerthanStandardActionValues.value+obj.id+"¶"+obj.value+"§";
          
        }
    
    //get clean shift comments
      function CheckCleanShiftComments(obj)
        {
            var hdnCleanShiftCommentsValues=document.getElementById("hdnCleanShiftComments");
            hdnCleanShiftCommentsValues.value=hdnCleanShiftCommentsValues.value+obj.id+"¶"+obj.value+"§";
        }
     
     //check if all score input
      function CheckIfAllScoreInput()
        {
            
           var  objTable=document.getElementById("CrTable");
           var  objComments=document.getElementById("tblComments");
           var  objInput=objTable.getElementsByTagName("input");
           var  objCommentInput=document.getElementById("tblComments").getElementsByTagName ("textarea");
            if(objInput.length<1)
            {        
                for(i=0;i<objCommentInput.length;i++)
                {
                  objCommentInput.item(i).disabled=true;
                } 
                document.getElementById("txtFaultDay").disabled=true;
                document.getElementById("txtLeave").disabled=true;             
                document.getElementById("btnSave").disabled=true;
                document.getElementById("hdnControlArrowStatus").value="false";
            }
        }
    
      //check the reason and action input
      function CheckReasonAndActionInput()
      {
          
           var objHdnLastScore=document.getElementById("hdnLastScore");
           var passScore = document.getElementById("hdnCleanPassScore").value; 
           
           if(trim(objHdnLastScore.value)!="")
           {
               if(document.getElementById (objHdnLastScore.value)!=null)
               {
              
                   var LastTextBox=document.getElementById (objHdnLastScore.value);
                   
//                 if(LastTextBox.value<60 && objHdnLastScore.value != "100" && (parseInt(LastTextBox.value) < parseInt(passScore) && document.getElementById("txt"+trim(objHdnLastScore.value))==null)) //Del
                   if(objHdnLastScore.value != "100" && (parseInt(LastTextBox.value) < parseInt(passScore) && parseInt(LastTextBox.value) != 0 && document.getElementById("txt"+trim(objHdnLastScore.value)) == null)) //Add by zengshunbo 2009-02-26
                   {
        //             document.getElementById("btnAddRow").click();
        
                       alert(document.getElementById("hdnErrorMessageSave").value);//Add by zengshunbo 2009-02-26
                       document.getElementById("hdnLastScore").value="100";
                       
        //             objHdnLastScore.value="";
                               
                       processing(true); //Add by zengshunbo 2009-02-26
                       
                       return false;
                   }
               }
           }
//           CheckScore(LastTextBox);
         
//         
//                 
//         SaveOperation();
         
            var objTable=document.getElementById("tblLowerStanderd");
            var objInput=objTable.getElementsByTagName("textarea");
            if(objInput.length>0)
            {
                for(i=0;i<objInput.length;i++)
                {
                    
                    if(objInput.item(i).value.trim()=="")
                    {
                        alert(document.getElementById("hdnErrorMessageSave").value);

                        return false;
                    }
                }
            }
            
            return processing(true); //Add by zengshunbo 2009-02-26           
            //return true;
           
        }
        
       //--------------- add by zengshunbo 2009-02-24 Issue:1027---------------
              
       function CheckHaveNoZero()
       {
            var table = document.getElementById("CrTable");
            var result = false;
            var inputs = table.getElementsByTagName("Input");
            
            for(i=0; inputs.length>i; i++)
            {
                if(inputs[i].value!="0")
                {
                    result=true;
                }
            }
            
            
            return result;
       }
        

      
      function SaveCheckComments()
      {
            //huangyao 20090324-------check leave and faulty day-----begin
            var FaultDay = document.getElementById("txtFaultDay");
            var Leave = document.getElementById("txtLeave");
            var hdnFaultDay = document.getElementById("hdnFaultDay");
            var hdnLeave = document.getElementById("hdnLeave");

            if(parseInt(Leave.value) < parseInt(hdnLeave.value))
            {
                var msg = '<%=this.GetMessage("SOM_InjurySickLeaveLessThanOldValueErrorMsg")%>' + hdnLeave.value + '\r\n' + '<%=this.GetMessage("COM_UpdateResultFail")%>';
                alert(msg);
                return false;
            }
                                
            if(parseInt(FaultDay.value) < parseInt(hdnFaultDay.value))
            {
                var msg = '<%=this.GetMessage("SOM_FaultDaysLessThanOldValueErrorMsg")%>' + hdnFaultDay.value + '\r\n' + '<%=this.GetMessage("COM_UpdateResultFail")%>';
                alert(msg);
                return false;
            }
            //huangyao 20090324-------check leave and faulty day-----end
            
            var CleanID=document.getElementById("hdnCleanID").value;
            var hdnValues = document.getElementById("hdnValues");
            var hdnCleanShiftComments = document.getElementById("hdnCleanShiftComments");
            
            //-------------- Fix issue:1047 2009-03-04-------------------
            
                var tblComments = document.getElementById("tblComments");
                var textAreaComments = tblComments.getElementsByTagName("TEXTAREA");
                
                hdnCleanShiftComments.value="";
                
                for(var i=0; textAreaComments.length > i; i++)
                {
                    hdnCleanShiftComments.value=hdnCleanShiftComments.value + '§' + textAreaComments[i].id + '¶' + textAreaComments[i].value;
                }
            
            //-------------- End Fix issue:1047 2009-03-04 ---------------
            
            var msg = document.getElementById("hdnSaveCheckCommentsMeg").value;
            
            if(CleanID == 0 && !CheckHaveNoZero())
            {   
                alert(msg);
                
                return false;
            }
            
            //return true;
            return CheckReasonAndActionInput();
      }
      
      //--------------- End add by zengshunbo 2009-02-24 Issue:1027---------------

    //----------------------- Add by zengshunbo 2009-03-12 same TD:1216 -----------------------
       document.onkeydown   =   function() {
          var k = window.event.keyCode;
          if (k == 116)   
          {   
                  window.event.keyCode    =   0;   
                  window.event.returnValue=   false;   
          }   
       }
    //--------------------- End add by zengshunbo 2009-03-12 same TD:1216 ---------------------
    
    //--------------------- Add by zengshunbo 2009-03-12 TD:1237 ----------------------------
    function PostBackDisableSearch(sender)
    {
        var objSearch = document.getElementById("btnSearch");
        objSearch.disabled = true;
        
        __doPostBack(sender.id);
        return true;
    }
    //--------------------- End add by zengshunbo 2009-03-12 TD:1237 ----------------------------
    
    //----------------------------- Add by zengshunbo 2009-03-16 issue:1102 --------------------------------
    function NumericUpDownExtenderControl()
    {
    //debugger;
        var FaultDay = document.getElementById("txtFaultDay");
        var Leave = document.getElementById("txtLeave");
        var hdnFaultDay = document.getElementById("hdnFaultDay");
        var hdnLeave = document.getElementById("hdnLeave");
                
        if(parseInt(FaultDay.value) < parseInt(hdnFaultDay.value))
        {
            //FaultDay.value = hdnFaultDay.value; //huangyao 20090324
        }
        
        if(parseInt(Leave.value) < parseInt(hdnLeave.value))
        {
            //Leave.value = hdnLeave.value; //huangyao 20090324
        }
        
        ControlLeaveNumericDownButton();
        ControlFaultDayNumericDownButton();
    }
    
    function ControlLeaveNumericDownButton()
    {
        var FaultDay = document.getElementById("txtFaultDay");
        var Leave = document.getElementById("txtLeave");
        var hdnFaultDay = document.getElementById("hdnFaultDay");
        var hdnLeave = document.getElementById("hdnLeave");
        var btnLeaveDown =  document.getElementById("btnLeaveDown");
        
        //if(parseInt(Leave.value) == parseInt(hdnLeave.value)) //huangyao 20090324
        if(parseInt(Leave.value) <= parseInt(hdnLeave.value))
        {
            btnLeaveDown.disabled = true;
        }
        else
        {
            btnLeaveDown.disabled = false;
        }    
    }
    
    function ControlFaultDayNumericDownButton()
    {
        var FaultDay = document.getElementById("txtFaultDay");
        var hdnFaultDay = document.getElementById("hdnFaultDay");
        var btnFaultDayDown =  document.getElementById("btnFaultDayDown");
        
        //if(parseInt(FaultDay.value) == parseInt(hdnFaultDay.value)) //huangyao 20090324
        if(parseInt(FaultDay.value) <= parseInt(hdnFaultDay.value))
        {
            btnFaultDayDown.disabled = true;
        }
        else
        {
            btnFaultDayDown.disabled = false;
        }    
    }
    
    //----------------------------- End add by zengshunbo 2009-03-16 issue:1102 --------------------------------
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </AjaxControlToolkit:ToolkitScriptManager>
        <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
            <tr>
                <td colspan="2" class="Page_Head">
                    <WebStructure:PageHead ID="PageHead" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="Page_Left">
                    <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M1406" />
                </td>
                <td class="Page_Right">
                    <table class="Page_Contents">
                        <tr>
                            <td class="TabStrip">
                                <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140602" ParentMenuID="M1406" DMenuMode="CurrOnly"
                                    runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Contents" style="height: 16px">
                                <div style="padding-top: 0px; margin-bottom: 0px; margin-top: 0px;">
                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td style="width: 10%">
                                                <asp:Label ID="lblStation" runat="server"></asp:Label>
                                            </td>
                                            <td style="width: 25%">
                                                <asp:DropDownList ID="ddlStation" runat="server" onchange="return PostBackDisableSearch(this);" AutoPostBack="True" OnSelectedIndexChanged="ddlStation_SelectedIndexChanged" CssClass="ddlStation">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 10%">
                                                <asp:Label runat="server" ID="lblYearMonth"></asp:Label>
                                            </td>
                                            <td style="width: 20%">
                                                <asp:DropDownList ID="ddlYear" runat="server"  onchange="return PostBackDisableSearch(this);"  AutoPostBack="True" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged">
                                                </asp:DropDownList><asp:DropDownList ID="ddlMonth" runat="server" onchange="return PostBackDisableSearch(this);"  AutoPostBack="True"
                                                    OnSelectedIndexChanged="ddlMonth_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>                                            
                                            <td style="text-align: right;">
                                                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" />
                                                <asp:Button ID="btnExportCurrentStationData" Text="Export" runat="server" OnClick="btnExportCurrentStationData_Click" />
                                                <asp:Button ID="btnExportAllStationData" Text="ExportAll" runat="server" OnClick="btnExportAllStationData_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div>
                                    <span>
                                        <asp:PlaceHolder runat="server" ID="phCleanScore"></asp:PlaceHolder>
                                        <input type="hidden" runat="server" id="hdnValues" />
                                        <input type="hidden" runat="server" id="hdnLowerthanStandardReason" />
                                        <input type="hidden" runat="server" id="hdnLowerthanStandardAction" />
                                        <input type="hidden" runat="server" id="hdnCleanShiftComments" />&nbsp;
                                        <input type="hidden" runat="server" id="hdnCleanPassScore" />
                                        <input type="hidden" runat="server" id="hdnErrorMessageSave" />
                                        <input type="hidden" runat="server" id="hdnLastScore" />
                                        <input type="hidden" runat="server" id="hdnControlArrowStatus" value="false" />
                                        <input type="hidden" runat="server" id="hdnLastUpdTime" />
                                        <input type="hidden" runat="server" id="hdnCommentUpdTempId" />
                                        <input type="hidden" runat="server"  id="hdnLowStandardUpdTempId"/>
                                    </span>
                                </div>
                                <fieldset style="width: 100%">
                                    <legend class="Title1">
                                        <asp:Label runat="server" ID="lblCleanScoreHeader" Text="2008/Jan"></asp:Label>
                                    </legend>
                                    <asp:Table ID="CrTable" runat="server" CellPadding="1" CellSpacing="1" Width="100%"
                                        Style="border-width: 1px; border-color: #aaaaaa; border-style: solid;">
                                    </asp:Table>
                                    <asp:HiddenField ID="hdnScoreID" runat="server" />
                                    <asp:HiddenField ID="hdnScore" runat="server" />
                                    <input style="display: none" type="button" id="btnAddRow" runat="server" value=""
                                        onserverclick="btnAddRow_ServerClick" />
                                    <div>
                                        <table cellpadding="1" cellspacing="1" width="100%">
                                            <tr>
                                                <td class="Title1">
                                                    <asp:Label ID="lblLeave" Text="Leave" runat="server"></asp:Label>
                                                    <asp:TextBox ID="txtLeave" onchange="NumericUpDownExtenderControl();" runat="server"></asp:TextBox>
                                                    <input runat="server" type="button" id="btnLeaveUp" value="▲" onclick = "ControlLeaveNumericDownButton();"  />
                                                    <input runat="server" type="button" id="btnLeaveDown" value="▼"  onclick = "ControlLeaveNumericDownButton();" />  
                                                    <AjaxControlToolkit:NumericUpDownExtender ID="NumericUpDownExtender1" TargetControlID="txtLeave" TargetButtonDownID="btnLeaveDown" TargetButtonUpID="btnLeaveUp"
                                                        Width="60" runat="server">
                                                    </AjaxControlToolkit:NumericUpDownExtender>
                                                </td>
                                                <td class="Title1">
                                                    <asp:Label ID="lblFault" Text="Fault Day" runat="server"></asp:Label>
                                                    <asp:TextBox runat="server" ID="txtFaultDay" onchange="NumericUpDownExtenderControl();"></asp:TextBox>
                                                    <input runat="server" type="button" id="btnFaultDayUp" value="▲" onclick="ControlFaultDayNumericDownButton();" />
                                                    <input runat="server" type="button" id="btnFaultDayDown" value="▼" onclick="ControlFaultDayNumericDownButton();" />  
                                                    <AjaxControlToolkit:NumericUpDownExtender ID="NumericUpDownExtender2" runat="server"
                                                        TargetControlID="txtFaultDay" Width="60" TargetButtonUpID="btnFaultDayUp" TargetButtonDownID="btnFaultDayDown">
                                                    </AjaxControlToolkit:NumericUpDownExtender>
                                                </td>
                                                <td style="text-align: right;">
                                                    <span class="Title1">
                                                        <asp:Label ID="lblStationAverage" Text="Station Average" runat="server"></asp:Label></span>
                                                    <asp:Label ID="lblStationAverageInfo" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </fieldset>
                                <br />
                                <br />
                                <div runat="server" id="divGeneralComments">
                                    <fieldset>
                                        <legend class="Title1">
                                            <asp:Label ID="lblComments" runat="server" Text="General Comments"></asp:Label>
                                        </legend>
                                        <div>
                                            <asp:Table runat="server" ID="tblComments" CellPadding="1" CellSpacing="1" Width="100%"
                                                BorderWidth="1" BorderColor="#aaaaaa" Style="border-width: 1px; border-color: #aaaaaa;
                                                border-style: solid;">
                                                <asp:TableRow Style="background-color: #eeeeee;" CssClass="Title1">
                                                    <asp:TableCell>
                                                        <asp:Label ID="lblShift" runat="server"></asp:Label>
                                                    </asp:TableCell>
                                                    <asp:TableCell>
                                                        <asp:Label runat="server" ID="lblGerneralComments"></asp:Label>
                                                    </asp:TableCell>
                                                </asp:TableRow>
                                            </asp:Table>
                                        </div>
                                    </fieldset>
                                </div>
                                <fieldset id="divLowerStanderd" runat="server" style="margin-top: 20px;">
                                    <legend class="Title1">
                                        <asp:Label ID="LowerStandard" runat="server"></asp:Label>
                                    </legend>
                                    <asp:Table ID="tblLowerStanderd" runat="server" CellPadding="1" CellSpacing="1" Width="100%"
                                        BorderWidth="1" Style="border-width: 1px; border-color: #aaaaaa; border-style: solid;">
                                        <asp:TableRow CssClass="Title1" BackColor="#eeeeee">
                                            <asp:TableCell Width="10%">
                                                <asp:Label ID="lblWeekNoHeader" runat="server"></asp:Label></asp:TableCell>
                                            <asp:TableCell Width="10%">
                                                <asp:Label ID="lblShiftHeader" runat="server"></asp:Label></asp:TableCell>
                                            <asp:TableCell Width="10%">
                                                <asp:Label ID="lblScoreHeader" runat="server"></asp:Label></asp:TableCell>
                                            <asp:TableCell>
                                                <asp:Label ID="lblReasonLowerStanderdHeader" runat="server"></asp:Label></asp:TableCell>
                                            <asp:TableCell>
                                                <asp:Label ID="lblSubStanderdActionHeader" runat="server"></asp:Label></asp:TableCell>
                                        </asp:TableRow>
                                    </asp:Table>
                                </fieldset>
                            </td>
                        </tr>
                        <tr>
                            <td class="Page_Foot" style="height: 54px">
                                <WebStructure:PageFoot ID="PageFoot" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <input runat="server" id="hdnCleanID" type="hidden" />
                    <input runat="server" id="hdnSaveCheckCommentsMeg" type="hidden" />
                    <input runat="server" id="hdnFaultDay" type="hidden" />
                    <input runat="server" id="hdnLeave" type="hidden" />
                </td>
            </tr>
        </table>
        <div id="divFlowMenu" runat="server">
            <img alt="" src="../../Images/up.gif" onclick="SwitchMenu(this);" />
            <!--add flow menu items begin-->
            <div>
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClientClick="return SaveCheckComments();" OnClick="btnSave_Click" />
            </div>
            <div>
                <asp:Button ID="btnPrint" runat="server" Text="Print" style="display:none" />
            </div>
            <!--add flow menu items end-->
        </div>
        <AjaxControlToolkit:AlwaysVisibleControlExtender ID="AlwaysVisibleControlExtender_FlowMenu"
            runat="server" TargetControlID="divFlowMenu" VerticalOffset="78" HorizontalOffset="1100">
        </AjaxControlToolkit:AlwaysVisibleControlExtender>
    </form>
</body>
</html>

<script type="text/javascript">
    LoadHoverEvent(document.all.divFlowMenu);                
    Sys.Application.add_load(SetFlowPos);
    window.onscroll=SetFlowPos;
    window.onresize=SetFlowPos;        
</script>

